/**
 * @Author MrsGuo
 * version 1.0
 * @Date 2023-08-08 13:23
 */
package com.cl.erp_2301.Service.impl;

import com.cl.erp_2301.Service.SupplierService;

import com.cl.erp_2301.dto.SupplierDTO;
import com.cl.erp_2301.mapper.SupplierMapper;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SupplierServiceImpl implements SupplierService {
    @Resource
private SupplierMapper supplierMapper;

    @Override
    public List<SupplierDTO> marketSupplier(Integer type) {
        return supplierMapper.marketSupplier(type);
    }
    @Override
    public List<SupplierDTO> listByPage() {
        return supplierMapper.listByPage();
    }

    @Override
    public List<SupplierDTO> select(String telephone) {
        return supplierMapper.select(telephone);
    }

    @Override
    public void add(SupplierDTO supplierDTO) {
        supplierMapper.add(supplierDTO);
    }
}
